
#!/bin/sh
rm -rf switch_cpu0_output > /dev/null;
rm -rf switch_cpu0_output.zip

# CPU1
cd ../../
cp config_switch_cpu2.mk config.mk -f
make  $@
cd -

if [ $# -eq 0 ] ; then
    
    mkdir -p switch_cpu0_output
    cp ../../build/zebu.raw switch_cpu0_output/can_firmware.bin -fr
    cd switch_cpu0_output/
    ../../../mkR5A78-c1200 switch 512K core0 can_firmware.bin
fi

